package com.company.project.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色部门
  * @author ZYF
 * @date 2021/5/18 11:03
 */
@Data
@TableName("sys_role_dept")
@ApiModel(value = "角色部门")
public class SysRoleDeptEntity extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("id")
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 角色id
     */
    @TableField("role_id")
    @ApiModelProperty(value = "角色id")
    private String roleId;

    /**
     * 菜单权限id
     */
    @TableField("dept_id")
    @ApiModelProperty(value = "菜单权限id")
    private String deptId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
